
/******************************************************下拉框*****************************************************/
_$.Popup=function (target){
    var _this = this;
    _$.Popup.superclass.constructor.call(_this,target);
};
_$.regClass("Popup",_$.Popup);

_$.extend(_$.Popup,_$.FormItem, {
    _cls:_$._clsPre + "Popup",
    _uiCls:_$._uiPreCls + "Popup",
    _attrProps:function(){
        var _this = this;
        var properties = _$.Popup.superclass._attrProps.call(_this);
        properties.addAll(["onchange","url"]);
        return properties;
    },
    _attrOpts:function(){
        var _this = this;
        var opts = _$.Popup.superclass._attrOpts.call(_this);
        return $.extend(true,opts,{

        });
    },
    _sync:function(){
        var _this = this;
    },
    _editModel:function(){
        var _this = this;
        _this._clearShow();
        var source= '<div class="popup"><span type="text" class="popup_input" value="AAA"></span><i class="popup_bar">...</i></div>';

        _this._replaceNode(source);
        _this.component = $(".popup",_this.el);
        _this.popup_input = $(".popup_input",_this.component);
        _this.popup_bar = $(".popup_bar",_this.component);
        _this.el.addClass(_this._uiCls);
        _this._setStyle();
        _this._initDialog();
        if(!_this.initialization) {
            _this._init();
        }else{
            _this.setValue(_this.value);
        }
        _this._bindEvents();
    },
    _initDialog:function(){
    },
    _setStyle:function(){
        var _this = this;
        var width = _this.getOption('width');
        if(isNotEmpty(width)){
            _this.component.css({
                "width":width + "px"
            });
        }
    }
});